import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login.vue')
  },
  {
    path: '/test',
    name: 'test',
    component: () => import('@/views/testSwipe.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/home.vue')
  },
  {
    path: '/order',
    name: 'order',
    component: () => import('@/views/order.vue')
  },
  {
    path: '/shop',
    name: 'shop',
    component: () => import('@/views/shop.vue')
  },
  {
    path: '/mine',
    name: 'mine',
    component: () => import('@/views/mine.vue')
  },
  {
    path:'/place',
    name: 'place',
    component: () => import('@/views/place.vue')
  },
  {
    path: '/address',
    name: 'address',
    component: () => import('@/views/address.vue')
  }
 
  
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
